#include<memory>
#include "client.hpp"

void Usage()
{
    cout<<"Usage:"<<endl<<"./client severip severport"<<endl<<endl;
}
int main(int argc,char*args[])
{
    if(argc!=3)
    {
        Usage();
        exit(USAGE_ERR);
    }
    string ip = args[1];
    uint16_t port= atoi(args[2]);
    unique_ptr<client> clt(new client(port,ip));
    clt->init();
    clt->start();

    return 0;
}